var o, e = require, t = module, n = exports, i = this && this.__extends || (o = function(t, e) {
    return (o = Object.setPrototypeOf || {
        __proto__: []
    } instanceof Array && function(t, e) {
        t.__proto__ = e;
    } || function(t, e) {
        for (var o in e) e.hasOwnProperty(o) && (t[o] = e[o]);
    })(t, e);
}, function(t, e) {
    function r() {
        this.constructor = t;
    }
    o(t, e), t.prototype = null === e ? Object.create(e) : (r.prototype = e.prototype, 
    new r());
}), a = this && this.__decorate || function(t, e, o, r) {
    var n, i = arguments.length, c = i < 3 ? e : null === r ? r = Object.getOwnPropertyDescriptor(e, o) : r;
    if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, r); else for (var p = t.length - 1; 0 <= p; p--) (n = t[p]) && (c = (i < 3 ? n(c) : 3 < i ? n(e, o, c) : n(e, o)) || c);
    return 3 < i && c && Object.defineProperty(e, o, c), c;
};

Object.defineProperty(n, "__esModule", {
    value: !0
});

var r = e("Global"), s = e("GameData"), c = cc._decorator, l = c.ccclass, d = c.property, u = function(e) {
    function t() {
        var t = null !== e && e.apply(this, arguments) || this;
        return t.imgList = [], t.sprite = null, t;
    }
    return i(t, e), t.prototype.onLoad = function() {
        this.node.destroy();
    }, t.prototype.start = function() {
        this.sprite.spriteFrame = r.G.chargeList[s.GD.petDataIdx] ? this.imgList[0] : this.imgList[1];
    }, a([ d([ cc.SpriteFrame ]) ], t.prototype, "imgList", void 0), a([ d(cc.Sprite) ], t.prototype, "sprite", void 0), 
    a([ l ], t);
}(cc.Component);

n.default = u;